<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" lang="en">
<head th:fragment="head(title)">
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width , initial-scale=1.0">
    <title th:replace="${title}">小而美的博客</title>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/semantic-ui@2.4.2/dist/semantic.min.css">
    <link rel="stylesheet" href="../static/css/typo.css" th:href="@{/css/typo.css}">
    <link rel="stylesheet" href="../static/css/animate.css" th:href="@{/css/animate.css}">
    <link rel="stylesheet" href="../static/css/prism.css" th:href="@{/css/prism.css}">
    <link rel="stylesheet" href="../static/lib/tocbot/tocbot.css" th:href="@{/css/tocbot.css}">
    <link rel="stylesheet" href="../static/css/me.css" th:href="@{/css/me.css}">
    <link rel="stylesheet" href="/lib/edit-md/css/editormd.min.css" th:src="@{/lib/edit-md/css/editormd.min.css}">
</head>
<body>
<!--导航-->
<nav th:fragment="menu(n)" class="ui inverted attached segment m-padded-tb-mini m-shadow-small">
    <div class="ui container">
        <div class="ui inverted secondary stackable menu " content="">
            <a class="ui teal" th:href="@{/}"><h2 class="ui teal header item">博客管理</h2></a>
            <a href="#" th:href="@{/admin/blogs}"  class="m-item m-mobile-hide item" th:classappend="${n==1} ? 'active'"><i class="home icon"></i>博客</a>
            <a href="#" th:href="@{/admin/types}"  class="m-item m-mobile-hide item" th:classappend="${n==2} ? 'active'"><i class="idea icon"></i>分类</a>
            <a href="#" th:href="@{/admin/tags}"  class="m-item m-mobile-hide item" th:classappend="${n==3} ? 'active'"><i class="tags icon"></i>标签</a>
            <a href="#" th:href="@{/about}"  class="m-item m-mobile-hide item" th:classappend="${n==4} ? 'active'"><i class="info icon"></i>关于我</a>
            <div class="right m-item menu">
                <div class="ui dropdown item">
                    <div class="text">
                        <img class="ui avatar image" src="https://unsplash.it/100/100?image=1005" th:src="@{${session.user.avatar}}">
                        <span th:text="${session.user.nickname}">胡文昊</span>
                    </div>
                    <i class="icon dropdown"></i>
                    <div class="menu">
                        <a th:href="@{/admin/logout}" class="item">注销</a>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <a href="#" th:href="@{/admin/logout}" class="ui menu toggle black icon button m-right-top m-mobile-show">
        <i class="sidebar icon"></i>
    </a>
</nav>
<footer th:fragment="footer" class="ui inverted vertical segment m-padded-tb-massive">
    <div class="ui center aligned container">
        <div class="ui inverted divided stackable grid">
            <div class="three wide column">
                <div class="ui inverted column">
                    <img src="../static/jpg/QRcode.png" th:src="@{/jpg/QRcode.png}" style="width: 120px;height: 120px" alt="">
                </div>
            </div>
            <div class="three wide column">
                <h4 class="ui inverted header">这是一个标题</h4>
                <div class="ui inverted link list">
                    <a href="#" class="item">内容内容内容内容内容</a>
                    <a href="#" class="item">内容内容内容内容内容</a>
                    <a href="#" class="item">内容内容内容内容内容</a>
                </div>
            </div>
            <div class="three wide column">
                <h4 class="ui inverted header">这是一个标题</h4>
                <div class="ui inverted link list">
                    <a href="#" class="item">内容内容内容内容内容</a>
                    <a href="#" class="item">内容内容内容内容内容</a>
                    <a href="#" class="item">内容内容内容内容内容</a>
                </div>
            </div>
            <div class="seven wide column">
                <h4 class="ui inverted header">这是一个标题</h4>
                <div class="ui inverted link list">
                    <p class="m-text-space">内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容</p>
                </div>
            </div>
        </div>
        <div class="ui inverted section divider"></div>
        <p class="m-text-thin">copy right</p>
    </div>
</footer>

<th:block th:fragment="script">
    <script src="https://cdn.jsdelivr.net/npm/jquery@3.2/dist/jquery.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/semantic-ui@2.4.2/dist/semantic.min.js"></script>
    <script src="../static/js/prism.js" th:src="@{/js/prism.js}"></script>
    <script src="../static/lib/tocbot/tocbot.min.js" th:src="@{/lib/tocbot/tocbot.js}"></script>
    <script src="https://cdn.jsdelivr.net/npm/jquery.scrollto@2.1.2/jquery.scrollTo.min.js"></script>
    <script src="../static/js/qrcode.min.js" th:src="@{/js/qrcode.min.js}"></script>
    <script src="../../static/lib/edit-md/editormd.js" th:src="@{/lib/edit-md/editormd.js}"></script>
</th:block>
</body>
</html>